package com.cy.ppj.model.ao.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @description:
 * @author: Ocean
 * @create: 2018-07-18 14:39
 **/
@Data
@ApiModel("产品类型标签")
public class ProductTypeTagAO {

    @ApiModelProperty(value = "产品类型ID", required = true, example = "0")
    @NotNull(message = "产品类型不可为空")
    private Long typeId;

    @ApiModelProperty(value = "标签ID", required = true, example = "0,1,2")
    @NotEmpty(message = "标签不可为空")
    private Long[] tagIds;

}
